import request from '@/utils/request'

export function getAllTime() {
  return request({
    url: '/Time/all',
    method: 'get'
  })
}

export function getTimeById(id) {
  return request({
    url: '/Time/one',
    method: 'get',
    params: {
      id: id
    }
  })
}

export function updateById(time) {
  return request({
    url: '/Time/update',
    method: 'post',
    data: time
  })
}
